import com.jeta.forms.components.separator.TitledSeparator;
import com.jgoodies.forms.layout.CellConstraints;
import com.jgoodies.forms.layout.FormLayout;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.rmi.Naming;
import java.util.Properties;
import java.util.Vector;

import javax.swing.Box;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.table.DefaultTableModel;


public class frmManageCustomer extends JPanel
{
   JPanel me = this;
   JLabel lblFirstName = new JLabel();
   JTextField txtZip = new JTextField();
   JTextField txtCustomerID = new JTextField();
   JTextField txtAddress = new JTextField();
   JTextField txtCity = new JTextField();
   JTextField txtName = new JTextField();
   JTextField txtState = new JTextField();
   JLabel lblFirstName1 = new JLabel();
   JCheckBox chkVoice = new JCheckBox();
   JCheckBox chkThreeWay = new JCheckBox();
   JCheckBox chkCallerID = new JCheckBox();
   JButton btnUpdatePersonalInfo = new JButton();
   JLabel lblName = new JLabel();
   JLabel lblFirstName2 = new JLabel();
   JLabel lblFirstName3 = new JLabel();
   JTable tblPhone = new JTable();
   JTable tblServiceRequests = new JTable();
   JButton btnChangeCustomer = new JButton();
   JTextField txtPin = new JTextField();
   JButton btnLogout = new JButton();
   JButton btnUpdateServices = new JButton();
   JButton btnUpdateServiceRequests = new JButton();
   JTable tblTroubleTickets = new JTable();
   JButton btnUpdateTroubleTickets = new JButton();
   JButton btnCreateCustomer = new JButton();
   JLabel lblName1 = new JLabel();
   JTextField txtName1 = new JTextField();
   JLabel lblProvider = new JLabel();
   JTextField txtDistanceProvider = new JTextField();
   Properties display;
   
   public DefaultTableModel getServiceRequestTableManager(String sr1, String sr2, String sr3, String sr4)
	{
	    javax.swing.table.DefaultTableModel model = new javax.swing.table.DefaultTableModel();
	    model.addColumn("Service Requests");
	    
	    Vector row = new Vector();
	    
	    row.add(sr1);
	    model.addRow(row);
	    
	    row = new Vector();
	    row.add(sr2);
	    model.addRow(row);
	    
	    row = new Vector();
	    row.add(sr3);
	    model.addRow(row);
	    
	    row = new Vector();
	    row.add(sr4);
	    model.addRow(row);
	    
	    return model;
	}
	
	public DefaultTableModel getPhoneTableManager(String p1, String p2, String p3, String p4)
	{
		DefaultTableModel model = new DefaultTableModel();
		model.addColumn("Activated Service");
		
		Vector row = new Vector();
	    
	    row.add(p1);
	    model.addRow(row);
	    
	    row = new Vector();
	    row.add(p2);
	    model.addRow(row);
	    
	    row = new Vector();
	    row.add(p3);
	    model.addRow(row);
	    
	    row = new Vector();
	    row.add(p4);
	    model.addRow(row);
	    
	    return model;
	}
	
	public DefaultTableModel getTroubleTicketTableModel(String tt1, String tt2, String tt3, String tt4)
	{
		DefaultTableModel model = new DefaultTableModel();
		model.addColumn("Tickets");
		
		Vector row = new Vector();
	    
	    row.add(tt1);
	    model.addRow(row);
	    
	    row = new Vector();
	    row.add(tt2);
	    model.addRow(row);
	    
	    row = new Vector();
	    row.add(tt3);
	    model.addRow(row);
	    
	    row = new Vector();
	    row.add(tt4);
	    model.addRow(row);
	    
	    return model;
	}
   
   
   /**
    * Default constructor
    */
   public frmManageCustomer()
   {
      initializePanel();
      display = ClientHelper.GetNewDisplay();
      loadFormWithDisplay();
   }
   
   public frmManageCustomer(String CustomerID, String PIN, JFrame caller)
   {
	   initializePanel();
	   display = ClientHelper.InitializeDisplay(CustomerID, PIN);
	   loadFormWithDisplay();
	   
	   caller.setVisible(false);
	   caller.dispose();
   }

   public frmManageCustomer(JFrame caller) {
	   initializePanel();
	   
	   caller.setVisible(false);
	   caller.dispose();
   }

/**
    * Adds fill components to empty cells in the first row and first column of the grid.
    * This ensures that the grid spacing will be the same as shown in the designer.
    * @param cols an array of column indices in the first row where fill components should be added.
    * @param rows an array of row indices in the first column where fill components should be added.
    */
   void addFillComponents( Container panel, int[] cols, int[] rows )
   {
      Dimension filler = new Dimension(10,10);

      boolean filled_cell_11 = false;
      CellConstraints cc = new CellConstraints();
      if ( cols.length > 0 && rows.length > 0 )
      {
         if ( cols[0] == 1 && rows[0] == 1 )
         {
            /** add a rigid area  */
            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
            filled_cell_11 = true;
         }
      }

      for( int index = 0; index < cols.length; index++ )
      {
         if ( cols[index] == 1 && filled_cell_11 )
         {
            continue;
         }
         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
      }

      for( int index = 0; index < rows.length; index++ )
      {
         if ( rows[index] == 1 && filled_cell_11 )
         {
            continue;
         }
         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
      }

   }

   /**
    * Helper method to load an image file from the CLASSPATH
    * @param imageName the package and name of the file to load relative to the CLASSPATH
    * @return an ImageIcon instance with the specified image file
    * @throws IllegalArgumentException if the image resource cannot be loaded.
    */
   public ImageIcon loadImage( String imageName )
   {
      try
      {
         ClassLoader classloader = getClass().getClassLoader();
         java.net.URL url = classloader.getResource( imageName );
         if ( url != null )
         {
            ImageIcon icon = new ImageIcon( url );
            return icon;
         }
      }
      catch( Exception e )
      {
         e.printStackTrace();
      }
      throw new IllegalArgumentException( "Unable to load image: " + imageName );
   }

   public JPanel createPanel()
   {
      JPanel jpanel1 = new JPanel();
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:80PX:NONE,FILL:41PX:NONE,FILL:47PX:NONE,FILL:17PX:NONE,FILL:45PX:NONE,FILL:37PX:NONE,FILL:17PX:NONE,FILL:53PX:NONE,FILL:DEFAULT:NONE,FILL:71PX:NONE,FILL:23PX:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
      CellConstraints cc = new CellConstraints();
      jpanel1.setLayout(formlayout1);

      lblFirstName.setName("lblFirstName");
      lblFirstName.setText("Zip:");
      jpanel1.add(lblFirstName,cc.xy(10,15));

      txtZip.setName("txtZip");
      jpanel1.add(txtZip,cc.xywh(11,15,2,1));

      txtCustomerID.setName("txtCustomerID");
      jpanel1.add(txtCustomerID,cc.xywh(3,5,3,1));

      txtAddress.setName("txtAddress");
      jpanel1.add(txtAddress,cc.xywh(3,14,10,1));

      txtCity.setName("txtCity");
      jpanel1.add(txtCity,cc.xywh(3,15,3,1));

      txtName.setName("txtName");
      jpanel1.add(txtName,cc.xywh(3,12,10,1));

      txtState.setName("txtState");
      jpanel1.add(txtState,cc.xy(8,15));

      lblFirstName1.setName("lblFirstName");
      lblFirstName1.setText("State:");
      jpanel1.add(lblFirstName1,cc.xy(7,15));

      chkVoice.setActionCommand("Voice");
      chkVoice.setName("chkVoice");
      chkVoice.setText("Voice");
      jpanel1.add(chkVoice,cc.xywh(6,22,3,1));

      chkThreeWay.setActionCommand("Three-Way");
      chkThreeWay.setName("chkThreeWay");
      chkThreeWay.setText("Three-Way");
      jpanel1.add(chkThreeWay,cc.xywh(6,23,3,1));

      chkCallerID.setActionCommand("Caller ID");
      chkCallerID.setName("chkCallerID");
      chkCallerID.setText("Caller ID");
      jpanel1.add(chkCallerID,cc.xywh(6,24,3,1));

      JLabel jlabel1 = new JLabel();
      jlabel1.setText("Customer ID:");
      jpanel1.add(jlabel1,cc.xy(2,5));

      btnUpdatePersonalInfo.setActionCommand("Edit Personal Info");
      btnUpdatePersonalInfo.setName("btnUpdatePersonalInfo");
      btnUpdatePersonalInfo.setText("Edit Personal Info");
      jpanel1.add(btnUpdatePersonalInfo,cc.xy(2,10));

      lblName.setName("lblName");
      lblName.setText("Name:");
      jpanel1.add(lblName,cc.xy(2,12));

      lblFirstName2.setName("lblFirstName");
      lblFirstName2.setText("Address Line 1:");
      jpanel1.add(lblFirstName2,cc.xy(2,14));

      lblFirstName3.setName("lblFirstName");
      lblFirstName3.setText("City:");
      jpanel1.add(lblFirstName3,cc.xy(2,15));

      TitledSeparator titledseparator1 = new TitledSeparator();
      titledseparator1.setText("Services");
      jpanel1.add(titledseparator1,cc.xywh(2,17,11,1));

      JLabel jlabel2 = new JLabel();
      jlabel2.setText("Phone Lines:");
      jpanel1.add(jlabel2,cc.xy(2,21));

      tblPhone.setName("tblPhone");
      JScrollPane jscrollpane1 = new JScrollPane();
      jscrollpane1.setViewportView(tblPhone);
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
      jpanel1.add(jscrollpane1,cc.xywh(2,22,3,9));

      TitledSeparator titledseparator2 = new TitledSeparator();
      titledseparator2.setText("Service Requests");
      jpanel1.add(titledseparator2,cc.xywh(2,31,12,1));

      TitledSeparator titledseparator3 = new TitledSeparator();
      titledseparator3.setText("Trouble Tickets");
      jpanel1.add(titledseparator3,cc.xywh(2,46,11,1));

      tblServiceRequests.setName("tblServiceRequests");
      tblServiceRequests.setRowSelectionAllowed(false);
      JScrollPane jscrollpane2 = new JScrollPane();
      jscrollpane2.setViewportView(tblServiceRequests);
      jscrollpane2.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
      jscrollpane2.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
      jpanel1.add(jscrollpane2,cc.xywh(2,35,11,10));

      TitledSeparator titledseparator4 = new TitledSeparator();
      titledseparator4.setText("Personal Information");
      jpanel1.add(titledseparator4,cc.xywh(2,9,11,1));

      btnChangeCustomer.setActionCommand("Change Customer");
      btnChangeCustomer.setName("btnChangeCustomer");
      btnChangeCustomer.setText("Login");
      jpanel1.add(btnChangeCustomer,cc.xywh(7,5,4,1));

      btnLogout.setActionCommand("Logout");
      btnLogout.setName("btnLogout");
      btnLogout.setText("Logout");
      jpanel1.add(btnLogout, cc.xywh(7, 6, 4, 1));
      
      JLabel jlabel3 = new JLabel();
      jlabel3.setText("Pin");
      jpanel1.add(jlabel3,cc.xy(2,7));

      txtPin.setName("txtPin");
      jpanel1.add(txtPin,cc.xy(3,7));

      btnUpdateServices.setActionCommand("New Service");
      btnUpdateServices.setName("btnUpdateServices");
      btnUpdateServices.setText("Activate Service");
      jpanel1.add(btnUpdateServices,cc.xy(2,19));

      btnUpdateServiceRequests.setActionCommand("New Service Request");
      btnUpdateServiceRequests.setName("btnUpdateServiceRequests");
      btnUpdateServiceRequests.setText("Installation Request");
      jpanel1.add(btnUpdateServiceRequests,cc.xy(2,33));

      tblTroubleTickets.setName("tblTroubleTickets");
      JScrollPane jscrollpane3 = new JScrollPane();
      jscrollpane3.setViewportView(tblTroubleTickets);
      jscrollpane3.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
      jscrollpane3.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
      jpanel1.add(jscrollpane3,cc.xywh(2,50,11,10));

      btnUpdateTroubleTickets.setActionCommand("New Trouble Ticket");
      btnUpdateTroubleTickets.setName("btnUpdateTroubleTickets");
      btnUpdateTroubleTickets.setText("New Trouble Ticket");
      jpanel1.add(btnUpdateTroubleTickets,cc.xy(2,48));

      btnCreateCustomer.setActionCommand("New Customer");
      btnCreateCustomer.setName("btnCreateCustomer");
      btnCreateCustomer.setText("New Customer");
      jpanel1.add(btnCreateCustomer,cc.xywh(7,7,4,1));

      lblName1.setName("lblName");
      lblName1.setText("SSN:");
      jpanel1.add(lblName1,cc.xy(2,13));

      txtName1.setName("txtName");
      jpanel1.add(txtName1,cc.xywh(3,13,3,1));

      lblProvider.setName("lblProvider");
      lblProvider.setText("Provider:");
      jpanel1.add(lblProvider,cc.xywh(6,21,3,1));

      txtDistanceProvider.setName("txtDistanceProvider");
      jpanel1.add(txtDistanceProvider,cc.xywh(10,21,3,1));

      JLabel jlabel4 = new JLabel();
      jlabel4.setFont(new Font("Tahoma",Font.BOLD,18));
      jlabel4.setText("C4 System Manager");
      jpanel1.add(jlabel4,cc.xywh(2,2,11,1));

      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60 });
      
      
      //Action Listeners
      btnCreateCustomer.addActionListener( new ActionListener()
      {
    	  public void actionPerformed( ActionEvent evt )
    	  {   
    		  frmNewCustomer form = new frmNewCustomer(GetParentFrame(me));
    		  JFrame frame = new JFrame();
    		  frame.add(form);
    		  frame.pack();
    		  frame.setLocationRelativeTo(null);
    		  frame.setVisible(true);
    	  }
      });
      
      btnChangeCustomer.addActionListener( new ActionListener()     
	    {
		    public void actionPerformed( ActionEvent evt )
		    {
		    	{
	    		System.setProperty("java.security.policy", "c4.policy");       

	    	       try
	    	       {
	    			    Server transactionManager = (Server)Naming.lookup("rmi:" + ClientHelper.SERVER_NAME);
	    				Worker worker = (Worker)transactionManager.getWorker();
				    	
				    	
				    	//Customer Login Task
				    	Task tmTask = new Task(Constants.CUSTOMER_LOGIN);
				    	tmTask.addParameter(Constants.PIN, txtPin.getText());
				    	tmTask.addParameter(Constants.ACCOUNT_NUMBER, txtCustomerID.getText());
				    	
				    	AccountRepresentation accRep = worker.request(tmTask);
				    	
				    	if(accRep.getSuccessful())
				    	{
				    		display = ClientHelper.InitializeDisplay(txtCustomerID.getText(), txtPin.getText());
				    		display.putAll(accRep.getUpdates());
				    		loadFormWithDisplay();
				    	}
				    	else
				    	{
				    		JOptionPane.showMessageDialog(me, accRep.getErrorMessages());
				    	}
			    	}
			    	catch(Exception e)
			    	{
			    		e.printStackTrace();
			    	}
		    	}
		    }
		});

	  btnUpdatePersonalInfo.addActionListener( new ActionListener()
	    {
	    	public void actionPerformed( ActionEvent evt )
	    	{
	    		frmPersonalInfo form = 
    				new frmPersonalInfo(display.getProperty(Constants.ACCOUNT_NUMBER),
    									display.getProperty(Constants.PIN),GetParentFrame(me));
	    		JFrame newFrame = new JFrame();
	    		newFrame.add(form);
	    		newFrame.pack();
	    		newFrame.setLocationRelativeTo(null);
	    		newFrame.setVisible(true);	    		
	    	}
	    });
      
	  btnUpdateServices.addActionListener( new ActionListener()
	    {
	    	public void actionPerformed( ActionEvent evt )
	    	{
	    		frmUpdatePhoneServices form = new frmUpdatePhoneServices(display, GetParentFrame(me));
	    		JFrame newFrame = new JFrame();
	    		newFrame.add(form);
	    		newFrame.pack();
	    		newFrame.setLocationRelativeTo(null);
	    		newFrame.setVisible(true);
	    	}
	  });
	  
	  btnLogout.addActionListener( new ActionListener()
	    {
	    	public void actionPerformed( ActionEvent evt )
	    	{
	    		ClientHelper.CustomerLogout(txtCustomerID.getText());
	    		display = ClientHelper.GetNewDisplay();
	    		loadFormWithDisplay();
	    	}
	  });
	  
	  btnUpdateServiceRequests.addActionListener( new ActionListener()
	    {
		  
	    	public void actionPerformed( ActionEvent evt )
	    	{
	    		display.setProperty(Constants.ACCOUNT_NUMBER, txtCustomerID.getText());
	    		display.setProperty(Constants.PIN, txtPin.getText());
	    		frmInstallService form = new frmInstallService(display, GetParentFrame(me));
	    		JFrame newFrame = new JFrame();
	    		newFrame.add(form);
	    		newFrame.pack();
	    		newFrame.setLocationRelativeTo(null);
	    		newFrame.setVisible(true);
	    	}
	    });
	  
	  btnUpdateTroubleTickets.addActionListener( new ActionListener()
	    {
	    	public void actionPerformed( ActionEvent evt )
	    	{
	    		display.setProperty(Constants.ACCOUNT_NUMBER, txtCustomerID.getText());
	    		display.setProperty(Constants.PIN, txtPin.getText());
	    		frmCreateTroubleTicket form = new frmCreateTroubleTicket(display, GetParentFrame(me));
	    		JFrame newFrame = new JFrame();
	    		newFrame.add(form);
	    		newFrame.pack();
	    		newFrame.setLocationRelativeTo(null);
	    		newFrame.setVisible(true);
	    	}
	    });
	  
	  tblTroubleTickets.setModel(this.getTroubleTicketTableModel("", "", "", ""));
	    
      return jpanel1;
   }

   /**
    * Initializer
    */
   protected void initializePanel()
   {
      setLayout(new BorderLayout());
      add(createPanel(), BorderLayout.CENTER);
   }
   
   private JFrame GetParentFrame(JPanel me)
   {
	   try{
		   return (JFrame)me.getParent().getParent().getParent().getParent().getParent().getParent();
	   }
	   catch (NullPointerException npe)
	   {
		   
	   }
	   return new JFrame();
	}
   
   private void loadFormWithDisplay()
   {
   		txtName.setText(display.getProperty(Constants.NAME));
		txtAddress.setText(display.getProperty(Constants.STREET));
		txtCity.setText(display.getProperty(Constants.CITY));
		txtState.setText(display.getProperty(Constants.STATE));
		txtZip.setText(display.getProperty(Constants.ZIP));
		txtCustomerID.setText(display.getProperty(Constants.ACCOUNT_NUMBER));
		txtPin.setText(display.getProperty(Constants.PIN));
		txtName1.setText(display.getProperty(Constants.SSN));
		
		if(display.getProperty(Constants.VOICEMAIL).equals("Y"))
		{
			chkVoice.setSelected(true);
		}
		else
		{
			chkVoice.setSelected(false);
		}
		
		if(display.getProperty(Constants.CALLER_ID).equals("Y"))
		{
			chkCallerID.setSelected(true);

		}
		else
		{
			chkCallerID.setSelected(false);
		}
		
		if(display.getProperty(Constants.THREE_WAY).equals("Y"))
		{
			chkThreeWay.setSelected(true);

		}
		else
		{
			chkThreeWay.setSelected(false);
		}
		
		
		String sr1 = display.getProperty(Constants.SERVICE0);
		String sr2 = display.getProperty(Constants.SERVICE1);
		String sr3 = display.getProperty(Constants.SERVICE2);
		String sr4 = display.getProperty(Constants.SERVICE3);
		tblServiceRequests.setModel(this.getServiceRequestTableManager(sr1, sr2, sr3, sr4));
		
		String tt1 = display.getProperty(Constants.TROUBLE0);
		String tt2 = display.getProperty(Constants.TROUBLE1);
		String tt3 = display.getProperty(Constants.TROUBLE2);
		String tt4 = display.getProperty(Constants.TROUBLE3);
		tblTroubleTickets.setModel(this.getTroubleTicketTableModel(tt1, tt2, tt3, tt4));
	
		String p1 = display.getProperty(Constants.PHONE0);
		String p2 = display.getProperty(Constants.PHONE1);
		String p3 = display.getProperty(Constants.PHONE2);
		String p4 = display.getProperty(Constants.PHONE3);
		tblPhone.setModel(this.getPhoneTableManager(p1, p2, p3, p4)); 
	    /*
  		txtName.setText("Ryan Hayes");
		txtAddress.setText("4301 Cedar Forest Drive");
		txtCity.setText("Fairfax");
		txtState.setText("VA");
		txtZip.setText("22030");
		txtCustomerID.setText("1234");
		//txtDOB.setText(display.getProperty(Constants.DOB));
		chkVoice.setSelected(true);
		chkThreeWay.setSelected(true);
		chkCallerID.setSelected(true);
		
		String sr1 = "Service 1";
		String sr2 = "Service 2";
		String sr3 = "Service 3";
		String sr4 = "Service 4";
		tblServiceRequests.setModel(this.getServiceRequestTableManager(sr1, sr2, sr3, sr4));
		
		String tt1 = "Trouble Ticket";
		String tt2 = "Trouble Ticket";
		String tt3 = "Trouble Ticket";
		String tt4 = "Trouble Ticket";
		tblTroubleTickets.setModel(this.getTroubleTicketTableModel(tt1, tt2, tt3, tt4));
	
		String p1 = "(276) 393-2450";
		String p2 = "(276) 393-2450";
		String p3 = "(276) 393-2450";
		String p4 = "(276) 393-2450";
		tblPhone.setModel(this.getPhoneTableManager(p1, p2, p3, p4));*/
	}  
}
